var cc__decorate = __decorate;
Object.defineProperty(exports, "__esModule", {
  value: true
});
var cc__decorator = cc._decorator;
var ccp_ccclass = cc__decorator.ccclass;
var ccp_property = cc__decorator.property;
var def_tip2 = /* */function (_cc$Component42) {
  function _ctor() {
    var _this190;
    babel_classCallCheck(this, _ctor);
    _this190 = _callSuper(this, _ctor, arguments);
    _this190.spriteAtlas = null;
    _this190.label = null;
    _this190.icon = null;
    return _this190;
  }
  babel_inherits(_ctor, _cc$Component42);
  return babel_createClass(_ctor, [{
    key: "setData",
    value: function setData(e) {
      this.label.string = e.text;
      this.icon && e.icon && this.spriteAtlas && (this.icon.spriteFrame = this.spriteAtlas.getSpriteFrame(e.icon));
    }
  }]);
}(cc.Component);
cc__decorate([ccp_property(cc.SpriteAtlas)], def_tip2.prototype, "spriteAtlas", undefined);
cc__decorate([ccp_property(cc.Label)], def_tip2.prototype, "label", undefined);
cc__decorate([ccp_property(cc.Sprite)], def_tip2.prototype, "icon", undefined);
def_tip2 = cc__decorate([ccp_ccclass], def_tip2);
exports.default = def_tip2;